package com.situ.crm.entity;

import java.util.Date;

public class Order {
	private Integer id;

	private Integer customerId;

	private String orderNo;

	private Integer saleChanceId;

	private Integer productId;

	private Date orderDate;

	private Integer status;

	private Date createTime;

	private Date updateTime;

	public Order(Integer id, Integer customerId, String orderNo, Integer saleChanceId, Integer productId,
			Date orderDate, Integer status, Date createTime, Date updateTime) {
		this.id = id;
		this.customerId = customerId;
		this.orderNo = orderNo;
		this.saleChanceId = saleChanceId;
		this.productId = productId;
		this.orderDate = orderDate;
		this.status = status;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	public Order() {
		super();
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo == null ? null : orderNo.trim();
	}

	public Integer getSaleChanceId() {
		return saleChanceId;
	}

	public void setSaleChanceId(Integer saleChanceId) {
		this.saleChanceId = saleChanceId;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public Date getOrderDate() {
		return orderDate;
	}

	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "Order [id=" + id + ", customerId=" + customerId + ", orderNo=" + orderNo + ", saleChanceId="
				+ saleChanceId + ", productId=" + productId + ", orderDate=" + orderDate + ", status=" + status
				+ ", createTime=" + createTime + ", updateTime=" + updateTime + "]";
	}

}